package my.service;

import my.database.test.repository.TestDao;
import my.spring.GenericService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class TestService extends GenericService {
    @Autowired
    TestDao    testDao;


    public Object test() {
        return testDao.findOne((root, query, cb) -> {
            return cb.and(cb.equal(root.get("name"), "a"));
        });
    }

}
